package com.okchan.dao;

import com.okchan.domain.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ok chan
 */
@Repository
public interface UserDao {

    //查询用户根据userId查询
    User selectUserById(Long userId);

    //查询所有用户
    List<User> useAll();

    //注册添加用户
    void insertUser(User user);

}

